package com.buercorp.wangyu.core1.ch12.threads;
// Runnable 接口
public class RunnableText implements Runnable{
    @Override
    public void run() {
        //run方法线程体
        for (int i = 0; i < 200; i++) {
            System.out.println("我在学习=="+i);
        }
    }

    public static void main(String[] args) {
        //创建runnable接口的实现类
        RunnableText threadTest3 = new RunnableText();
        //创建线程对象，通过线程对象来开启我们的线程,代理
        Thread thread = new Thread(threadTest3);

        thread.start();

        for (int i = 0; i < 1000; i++) {
            System.out.println("我在好好摆烂==="+i);
        }
    }
}
